    // ==UserScript==
    // @name         New Userscript
    // @namespace    http://tampermonkey.net/
    // @version      0.+
    // @description  try to take over the world!
    // @author       You
    // @match        http://image.baidu.com/search/index?*
    // @require      https://code.jquery.com/jquery-3.3.1.min.js
    // @grant        none
    // ==/UserScript==

    (function () {
        'use strict';

        // Your code here...
        console.log(0);
        //console.log($(".imgitem").attr("data-title"));
        $("#imgfilter-btn").after("<input class='tjButton' type='button' value='提交' name='test' style='width:80px;height:30px;background-color:#ff6e2e;'/>");

        $(".tjButton").click(function () {
            var obj = document.getElementsByName("test");
            var check_val = [];
            var k;
            for (k in obj) {
                if (obj[k].checked)
                    check_val.push(obj[k].value);
            }
            alert(check_val);
        });

        var img_urls = $(".imgbox a");
        for (var i = 0; i < img_urls.length; i++) {
            var url_href = img_urls[i].href;
            var url = url_href.split("objurl=")[1].split("&")[0];
            console.log(decodeURIComponent(url));
        }

        $(".imgitem").each(function () {
            console.log(1);
            var i = 0;
            i++;
            $(this).append("<input class='checkbox' type='checkbox' name='test' value='i' checked='checked'/>");
        });

        $(".checkbox").css({
            width: "100px",
            height: "60px",
            // "background-color": "red",
            position: "absolute",
            top: "0",
        });
        // var abc = $(".checkbox").attr("checked");
        // if(abc){
        //     alert("选中");
        // }
    })();